package kr.hkit.powerjava.chapter07.work;

public class PracticeMain {
	public static void main(String[] args) {
		
		//setData 쓰면 객체 하나만 생성하고 나머지는 메소드만 바꿔줌
		//이런방법도 있음.
		
		/*Eworld e = new Eworld(1,2,10);
		System.out.println(e);
		e.setData(1, 2, 18);
		System.out.println(e);
		e.setData(1, 4, 10);
		System.out.println(e);
		e.setData(1, 4, 18);
		System.out.println(e);
		e.setData(1, 24, 10);
		System.out.println(e);
		e.setData(1, 24, 18);
		System.out.println(e);
		//setData
*/		

		Eworld e = new Eworld(0, 0, 0);
		Eworld e1 = new Eworld(1,2,18);
		Eworld e2 = new Eworld(1,4,10);
		Eworld e3 = new Eworld(1,4,18);
		Eworld e4 = new Eworld(1,24,10);
		Eworld e5 = new Eworld(1,24,18);

		System.out.println(e);
		System.out.println(e1);
		System.out.println(e2);
		System.out.println(e3);
		System.out.println(e4);
		System.out.println(e5);
		
	}
}
